Fix cross compiling with a build script
authorAlex Crichton <alex@alexcrichton.com>
Fri, 7 Nov 2014 17:25:25 +0000 (09:25 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 7 Nov 2014 17:25:25 +0000 (09:25 -0800)
commitb9c2b46e3379204eba258715a470f84668469f3f
tree87e590a568189e116084f908e5ee89dae5b5cf22
parent00e6fb8adac603ee1e1432b8ac938a46c130307c
Fix cross compiling with a build script

Previously there was a mixup of where the build script was getting compiled into
as well as where the output was going to. This commit fixes the problems for
now, but still has room for improvement in the future.

Build scripts themselves are now unconditionally built into `target/build/..`
because they're compiled for the host platform. Their outputs are in
`target/$target/build/..` as expected.
src/cargo/ops/cargo_rustc/custom_build.rs
tests/test_cargo_cross_compile.rs